package com.hc.controller;

import com.hc.iservice.ITestService;
import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
import com.jfinal.plugin.spring.Inject;
import com.jfinal.plugin.spring.IocInterceptor;

/**
 * @author HuChao http://www.weibo.com/u/2420404910
 * @version 1.0 2015年4月7日 上午10:09:57
 */

@Before(IocInterceptor.class)
public class SpringController extends Controller {

	@Inject.BY_TYPE
	ITestService testService;

	public void index() {
		renderJson(testService.test());
	}

}
